class RichNote
{
	String title;
	String content;
	Date createDate = new Date();
	Date lastUpdateDate = new Date();
	String flag;  //1:金玉良言，2:投资理念札记，3:投资大师理念 ，4:备用，5:国内精英，6:趋势投资，7:中国特色，8:创业板
	Integer ordernum = 500;
	
	static constraints = 
	{
		title(blank:false, maxSize:100)
		content(blank:false, maxSize:20000)
		flag(blank:false, maxSize:4)
	}	
}